$(document).ready(function() {
	
	$("#submit").click(function(){
	      var response = '';
	      $.ajax({
	        type: 'GET',  
	        url: 'http://localhost:8080/conversation/conversations/',
	        dataType: 'json',
	        data: "",
	        crossDomain: true,
	        success : function(resp)
	            {
	                alert(resp);
	            },
	         error: function (jqXHR, textStatus,errorThrown) {
	        	 console.log(errorThrown);
	                
	            }
	         });
	     });
	$("#submit1").click(function(){
		$.getJSON('http://localhost:9000/conversation/conversations/',
			    function(data){
			    alert(data);
			    });
	});
		
	
$("#submit0").click(function(){
 $.ajax({
        type: 'POST',
        url: '/common/Category/Category.aspx/SE_getNextPage',
        contentType: "application/json; charset=utf-8",
        data: "{'searchQuery':'Beds--C331--2.htm' , 'zipCode':'' , 'toLocal':'0'}",
        dataType: "json",
        success: function (msg) {
        	console.log(msg);
        }
	 });
	});
});